package cn.edu.scau.cmi.guihao.domin.factory;

import cn.edu.scau.cmi.guihao.interProgramming.factory.InsuranceType;

public class AutomobileDamage extends InsuranceType{
	AutomobileDamage(String name){
		this.name = name;
	}
	public String compensate() {	
		return "pay "+name+" money becauses of automobile damage.";
	}
}
